﻿@model Dziennik_MVC.Models.Entities.Grupy
           
@{
    ViewBag.Title = "Dodaj grupę";
    Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml";
}

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Dodaj grupę</legend>

        <div class="editor">
            @Html.LabelFor(model => model.nazwa_grupy)        
            @Html.EditorFor(model => model.nazwa_grupy)
            @Html.ValidationMessageFor(model => model.nazwa_grupy)
        </div>

        <p>
            <input type="submit" value="Dodaj grupę" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("powrót do listy grup", "List")
</div>
